package beans;

import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;

/**
 *
 * @author Meraner Marcel
 */
public class ThresholdFilterBeanBeanInfo extends SimpleBeanInfo {
    
    @Override
    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            PropertyDescriptor enabled, threshold;
            
            enabled = new PropertyDescriptor("filterEnabled", ThresholdFilterBean.class);
            enabled.setDisplayName("Set active:");
            
            threshold = new PropertyDescriptor("threshold", ThresholdFilterBean.class);
            threshold.setDisplayName("Threshold (1-254):");
            
            PropertyDescriptor pd[] = { enabled, threshold };
            return pd;
        }
        catch(Exception ex) {
            ex.printStackTrace();
        }
        return null;
    }
    
}
